package org.test.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.test.vo.Admin;

@Mapper
public interface AdminMapper {

     //根据用户名和密码查询记录
     Admin queryAdminByUsernameAndPassword(@Param("username")String username, @Param("password")String password);

     //增加一条用户信息
     int insertAdmin(@Param("username")String username, @Param("password")String password);

     //根据用户名查询用户信息
     Admin queryAdminByUsername(@Param("username")String username);

     //更新用户信息
     int updateUser(@Param("id")int id,@Param("username")String username, @Param("password")String password);
}
